<template>
	<view>
		    <view class="list" v-for="(item,index) of orderCommentVoList" :key="index">
		      <ul>
		        <li class="one-row">
		          <view>
					  <image class="tx" :src="item.customerHandImage" mode="" ></image>
		          </view>
		          <view class="one-row-bottom">
		            <p class="name">{{item.customerNickName}}</p>
		            <p class="time">{{item.orderCommentApplicationTime}}</p>
		          </view>
		        </li>
		        <li class="two-row">
		          <p>{{item.orderCommentContent}}</p>
		        </li>
		        <li v-for="pic in item.orderCommentPictureList">
					<image style="width: 300rpx;height: 300rpx;float: left;display:inline-block;padding: 0.2rem;" :src="pic.orderCommentPictureUrl" mode="" ></image>
		        </li>
		        <li class="four-row">
		          <view class="four-left">
					  <image style="width: 250rpx;height: 250rpx;float: left;" :src="item.picUrl" mode="" ></image>
		          </view>
		          <view style="margin-left:8rem;">
		            <view style="font-size: 24rpx;" >{{item.labelName}},{{item.labelUnit}}</view>
		            <view class="price">￥{{item.paymentMoney}}<span v-if="item.orderCommentLevel<3" style="font-size: 14px;margin-left: 5px;color: #fb5d63">已差评</span></view>
		          </view>
		        </li>
		      </ul>
		    </view>
	</view>
</template>

<script>
	  import { orderCommentVoByNull } from '../../api/commodity/order_master.js';
	export default {
		data() {
			return {
				  //用户人全部的评价
				  orderCommentVo:{},
				  //全部评价的集合
				  orderCommentVoList:[],
				  
			}
		},
		created() {
		  this.getSelectOrderCommentVo();
		},
		methods: {
			 //查询全部的评价
			getSelectOrderCommentVo(){
			  orderCommentVoByNull(this.orderCommentVo).then((res)=>{
				if (res.data.code==200){
				  this.orderCommentVoList = res.data.data;
				}
				console.log(JSON.stringify(res));
			  })
			},
			
		}
	}
</script>

<style>
.news_comments {
    height: 100%;
    background-color: #f4f4f4;
  }

  .price {
    color: rgba(16, 16, 16, 100);
    font-size: 32rpx;
    text-align: left;
    margin-top: 5vw;
    font-family: SourceHanSansSC-bold;
  }

  .four-right {
    margin-left: 16rpx;
  }

  .spxq {
    color: rgba(91, 91, 91, 100);
    font-size: 24rpx;
  }

  .four-row {
    margin: 20rpx 0;
    display: inline-block;
    align-items: unset;
  }

  .four-left img {
    width: 24vw;
    height: 24vw;
  }


  p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .two-row {
    margin-top: 16rpx;
    color: rgba(91, 91, 91, 100);
    font-size: 26rpx;
    text-align: left;
    font-family: PingFangSC-regular;
  }

  .one-row-bottom {
    margin-left: 16rpx;
  }

  .list {
    width: 100%;
    overflow: hidden;
    padding: 20rpx 30rpx;
    box-sizing: border-box;
    background-color: #ffffff;
    margin: 20rpx 0;
  }

  .tx {
    width: 10vw;
    height: 10vw;
    border-radius: 50%;
  }

  .one-row {
    display: flex;
  }

  .name {
    color: rgba(104, 104, 103, 100);
    font-size: 28rpx;
    text-align: left;
    font-family: PingFangSC-regular;
  }

  .time {
    color: rgba(151, 149, 149, 100);
    font-size: 24rpx;
    text-align: left;
    font-family: SourceHanSansSC-regular;
  }
</style>
